package lambda_expression.method_reference;

import java.util.function.BiFunction;

/**
 * 类 :: 静态方法
 */
public class ClassStaticMethodReferTest {

    public static void main(String[] args) {
        BiFunction<Integer, Integer, Integer> biFunction = (a, b) -> Integer.sum(a, b);
        BiFunction<Integer, Integer, Integer> biFunction2 = Integer::sum;

        System.out.println(biFunction.apply(2, 3));
        System.out.println(biFunction2.apply(2, 3));


    }
}
